package com.ck.shardinggo.enums;

import lombok.Getter;

/**
 * @Author yd
 * @Date 2018/10/17 09:24
 */
@Getter
public enum ResultEnum {
   PARAM_ERROR(1,"参数错误"),
    DATA_NULL(2,"数据为空"),
    ID_NOT_FOUND(3,"关联主键错误"),
    SAVE_SUCCESS(4,"保存成功"),
    SAVE_FALI(4,"保存失败"),
    MSG_SEND_SUCCESS(5,"短信发送成功"),
    MSG_SEND_FAIL(6,"短信发送失败"),
    CODE_NOT_EQUALS(7,"验证码错误"),
    USER_NOT_FOUND(8,"用户不存在"),
    PASSWORD_FALSE(9,"密码错误"),
    LOGIN_SUCCESS(10,"登录成功"),
    USERNAME_EXISTD(11,"用户名已经存在"),
    ISCONFIRM(12,"已确认"),
    NOTCONFIRM(13,"未确认"),
    DELETE_SUCCESS(14,"删除成功"),
    TELNUM_EXISTD(15,"手机号已经存在"),
    DELETE_FAIL(16,"删除异常")
    ;

   private Integer code;

   private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
